﻿using daonaite.Model.system.menu;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace daonaite.Model.system.dept
{
    /// <summary>
    /// 部门表
    /// </summary>
    public class sys_dept: BaseModel
    {
        [SugarColumn(IsPrimaryKey = true)]
        public int id { get; set; }

        public int fid { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string? deptName { get; set; }
        /// <summary>
        /// 父级id集合
        /// </summary>
        public string? ancestors { get; set;}

        /// <summary>
        /// 不参与sql,子集
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<sys_dept>? child { get; set; }
    }
}
